package com.ibsol.service
{
	import com.ibsol.database.ItineraryDAO;
	
	import mx.collections.ArrayCollection;
	
	public class ItineraryService{
		
		private var itineraryDAO:ItineraryDAO;
		
		public function ItineraryService(){
			itineraryDAO=new ItineraryDAO();
		}
		
		/**
		 * 按旅游套装编号得到旅游套装的日程数据
		 * @param id 旅游套装编号
		 **/
		 public function getItineraryListByPid(id:int):ArrayCollection{
		 	var ac:ArrayCollection=new ArrayCollection();
		 	itineraryDAO.loadItineraiesByPackage(id,function (actemp:ArrayCollection):void{
		 		ac=actemp;
		 	});
		 	return ac;
		 }
	}
}